package org.jix.framework.biz.context.config;

import org.jix.framework.biz.context.filter.HeaderUserID2ContextFilter;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;

/**
 * @author stark
 * @date 2025/6/3 12:20
 * @description
 **/
@AutoConfiguration
public class ContextAutoConfiguration {

    @Bean
    public FilterRegistrationBean<HeaderUserID2ContextFilter> filterFilterRegistrationBean() {
        HeaderUserID2ContextFilter filter = new HeaderUserID2ContextFilter();
        FilterRegistrationBean<HeaderUserID2ContextFilter> bean = new FilterRegistrationBean<>(filter);
        return bean;
    }
}
